<template>
  <div class="second">
    <header>
      <h3>Giraffe</h3>
    </header>
    <section>
      <div class="card">
        <span class="title">让我们互相了解一下吧</span>
        <span class="earn">赚取￥0.05</span>
        <div class="go" @click="goNext">Go</div>
        <span class="time">30</span>
        <span class="des">预计完成时间</span>
      </div>
    </section>
  </div>
</template>

<script>
export default {
  name: 'tutorialSecond',
  data () {
    return {
      // vuegConfig: {
      //   forwardAnim: 'fadeInRight',
      //   backAnim: 'fadeInLeft'
      // }
    }
  },
  methods: {
    goNext () {
      this.$router.push({
        name: 'tutorialThird'
      })
    }
  }
}
</script>

<style lang="scss" scoped>
.second {
  background-image: linear-gradient(#ffddb4, #3d68be);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
header {
  flex: none;
  width: 100%;
  height: 98px;
  display: flex;
  justify-content: center;
  align-items: center;
  h3 {
    font-size: 48px;
    color: #5d331e;
  }
}
section {
  flex: 1;
  display: flex;
  padding-bottom: 20px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  .card {
    flex: 1;
    width: 678px;
    background-image: url('/static/images/giraffe.png');
    background-size: cover;
    border-radius: 10px;
  }
  .title {
    display: block;
    text-align: center;
    margin-top: 130px;
    font-size: 48px;
    color: #fff;
  }
  .earn {
    display: block;
    margin-top: 15%;
    text-align: center;
    color: #fce520;
    font-size: 40px;
  }
  .go {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 84px;
    color: #4d4d4d;
    font-weight: lighter;
    margin: 0 auto;
    margin-top: 20%;
    width: 270px;
    height: 270px;
    border-radius: 50%;
    background-color: #fff;
  }
  .time {
    display: block;
    margin-top: 20%;
    font-size: 96px;
    color: #fff;
    font-weight: lighter;
    text-align: center;
    &::after {
      content: 's'
    }
  }
  .des {
    display: block;
    text-align: center;
    opacity: 0.5;
    font-size: 24px;
    color: #fff;
  }
}
</style>
